package lookas.screen;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;

public class WarnScreen extends SimpleScreen {

	public WarnScreen(Screen s, String warn) {
		super(s);
		form.append(warn);
	}

	protected void init() {
		form = new Form("Warning");
		Command ok = new Command("OK", Command.ITEM, 0);
		addCommand(ok, new Runnable() {
			public void run() {
				Display.getDisplay(parent.getMidlet()).setCurrent(
						parent.getForm());
			}
		});
	}
}
